#ifndef STM32_H
#define STM32_H

#include <QWidget>
#include "mybtn.h"
#include "globalval.h"
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QButtonGroup>
#include "history.h"
#include <QDateTime>

#include <QCoreApplication>
//struct data
//{
//    int key;
//    d
//};

namespace Ui {
class Stm32;
}

class Stm32 : public QWidget
{
    Q_OBJECT

public:
    explicit Stm32(QWidget *parent = 0);
    int type;
    int result;
    ~Stm32();

private:
    Ui::Stm32 *ui;
    QButtonGroup *btp;
    History *his;
private slots:
    void send(bool val);
    void dataUpSlot(QByteArray arry);
    void shuaxin();
    void history();

};

#endif // STM32_H
